package cn.itsource.repository;

import cn.itsource.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class PermissionScanInitInstener implements CommandLineRunner {
    @Autowired
    private IPermissionService permissionService;
    @Override
    public void run(String... args) throws Exception {
//        new Thread(new Runnable(){
//            @Override
//            public void run() {
//                // 执行permission数据添加方法
//                permissionService.scanPermission();
//            }
//        }).start();
    }

}
